package com.dp.iot.model;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.math.*;
import java.io.Serializable;
import lombok.Data;
/**
* 代码为自动生成 Created by www.magicalcoder.com
* 如果你改变了此类 read 请将此行删除
* 欢迎加入官方QQ群:323237052
*/
@Data
public class IotMember implements Serializable{

    private String userId;//用户ID
    private String roleId;//角色ID
    private String userCode;//用户编码
    private String userName;//用户名称
    private String userAccount;//用户账户
    private String userPassword;//用户密码 MD5加密
    private Integer userState;//用户状态 1在用 0停用
    private Integer userType;//用户类型 1超级管理员 2普通管理员 3普通用户
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp lastLoginTime;//最后登录时间
    private String lastLoginIp;//最后登录IP
    private Integer loginNum;//登陆次数
    private String userSex;//性别
    private String userEmail;//邮箱
    private String userPhoneNum;//手机号
    private String remarks;//备注
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp creationTime;//创建时间
    private String creationUser;//创建人
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp updateTime;//更新时间
    private String updateUser;//更新人
    private String spare1;//备用1
    private String spare2;//备用2
    private String spare3;//备用3


    public String getUserId(){
        return userId;
    }
    public void setUserId(String userId){
        this.userId = userId;
    }

    public String getRoleId(){
        return roleId;
    }
    public void setRoleId(String roleId){
        this.roleId = roleId;
    }

    public String getUserCode(){
        return userCode;
    }
    public void setUserCode(String userCode){
        this.userCode = userCode;
    }

    public String getUserName(){
        return userName;
    }
    public void setUserName(String userName){
        this.userName = userName;
    }

    public String getUserAccount(){
        return userAccount;
    }
    public void setUserAccount(String userAccount){
        this.userAccount = userAccount;
    }

    public String getUserPassword(){
        return userPassword;
    }
    public void setUserPassword(String userPassword){
        this.userPassword = userPassword;
    }

    public Integer getUserState(){
        return userState;
    }
    public void setUserState(Integer userState){
        this.userState = userState;
    }

    public Integer getUserType(){
        return userType;
    }
    public void setUserType(Integer userType){
        this.userType = userType;
    }

    public Timestamp getLastLoginTime(){
        return lastLoginTime;
    }
    public void setLastLoginTime(Timestamp lastLoginTime){
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIp(){
        return lastLoginIp;
    }
    public void setLastLoginIp(String lastLoginIp){
        this.lastLoginIp = lastLoginIp;
    }

    public Integer getLoginNum(){
        return loginNum;
    }
    public void setLoginNum(Integer loginNum){
        this.loginNum = loginNum;
    }

    public String getUserSex(){
        return userSex;
    }
    public void setUserSex(String userSex){
        this.userSex = userSex;
    }

    public String getUserEmail(){
        return userEmail;
    }
    public void setUserEmail(String userEmail){
        this.userEmail = userEmail;
    }

    public String getUserPhoneNum(){
        return userPhoneNum;
    }
    public void setUserPhoneNum(String userPhoneNum){
        this.userPhoneNum = userPhoneNum;
    }

    public String getRemarks(){
        return remarks;
    }
    public void setRemarks(String remarks){
        this.remarks = remarks;
    }

    public Timestamp getCreationTime(){
        return creationTime;
    }
    public void setCreationTime(Timestamp creationTime){
        this.creationTime = creationTime;
    }

    public String getCreationUser(){
        return creationUser;
    }
    public void setCreationUser(String creationUser){
        this.creationUser = creationUser;
    }

    public Timestamp getUpdateTime(){
        return updateTime;
    }
    public void setUpdateTime(Timestamp updateTime){
        this.updateTime = updateTime;
    }

    public String getUpdateUser(){
        return updateUser;
    }
    public void setUpdateUser(String updateUser){
        this.updateUser = updateUser;
    }

    public String getSpare1(){
        return spare1;
    }
    public void setSpare1(String spare1){
        this.spare1 = spare1;
    }

    public String getSpare2(){
        return spare2;
    }
    public void setSpare2(String spare2){
        this.spare2 = spare2;
    }

    public String getSpare3(){
        return spare3;
    }
    public void setSpare3(String spare3){
        this.spare3 = spare3;
    }
}
